<template>
    <div>
    <!-- <order-header v-bind:title="title">
      <template v-slot:tip>
        <span>{{tip}}</span>
      </template>
    </order-header> -->
<router-view></router-view>
<service-bar></service-bar>
<nav-footer></nav-footer>
    </div>
</template>
<script>
import OrderHeader from '../components/OrderHeader.vue'
import ServiceBar from '../components/ServiceBar.vue'
import NavFooter from '../components/NavFooter.vue'
export default {
  components: { OrderHeader },
    name:'order',
    data(){
        return{
            title:'',
            tip:''
        }
    },
    components:{
    OrderHeader,
    NavFooter,
    ServiceBar
    },
    mounted(){
        // let path = this.$route.path;
        // if( path == '/order/confirm'){
        // this.title = "订单确认"
        // this.tip = '请确认好收货地址';
        // }else if(path == '/order/list'){
        //  this.title = '订单列表';
        //  this.tip = '请谨防钓鱼连接或诈骗电话，了解更多'
        // }else if(path == '/order/pay'){
        //   this.title = '订单支付';
        //   this.tip = '请确认好您的支付订单，确保填写正确'
        // }else{
        //   this.title = '订单支付'
        //   this.tip = '请确认好您的支付订单，确保填写正确'

        // }
    }
}
</script>
